package com.mesnac.comm.dao;

import java.util.List;

public interface IBaseDao<T> {

	public T getById(java.io.Serializable id);
	public List<T> getAll();
	public List<T> getByProperty(String property,Object value);
	public List<T> getByExample(T example);
	public void delete(T entity);
	public void update(T entity);
	public java.io.Serializable save(T entity);
	public T load(Class entityClass,java.io.Serializable id);
	public List<T> getAllWithCache();
	public List<T> getByPage(String hql,int beginIndex,int everyPage);
	
}
